Skip to content

Fix text alignment in invocation grid rows#22158

Draft
dannon wants to merge 1 commit intogalaxyproject:devfrom
dannon:fix/invocation-menu-text-alignment
Draft

Fix text alignment in invocation grid rows#22158
dannon wants to merge 1 commit intogalaxyproject:devfrom
dannon:fix/invocation-menu-text-alignment

Conversation

@dannon
Copy link
Member

@dannon dannon commented Mar 17, 2026

Fixes #21143.

The history name in SwitchToHistoryLink had two alignment issues when wrapping to multiple lines:

  1. The flex container used justify-content: space-between and align-items: center, which pushed the archive/purge icon to the far right and vertically centered it against multi-line text. Switched to baseline and dropped space-between.

  2. GLink renders as a <button> when no href/to prop is provided, and browsers default buttons to text-align: center. On single-line text this is invisible, but wrapped text center-aligns each line. Used a scoped :deep() selector to override this on the history link.

@dannon dannon marked this pull request as draft March 17, 2026 14:40
@dannon
Copy link
Member Author

dannon commented Mar 17, 2026

Marking as draft — I want to add before/after screenshots and verify this doesn't have unintended consequences on other grid pages or SwitchToHistoryLink usages before requesting review.

@github-actions github-actions bot added this to the 26.1 milestone Mar 17, 2026
SwitchToHistoryLink's flex container used space-between and center, which
pushed the archive/purge icon far right and vertically centered it against
multi-line text. Switched to baseline and dropped space-between. Also,
GLink renders as a button when no href/to is provided and browsers default
buttons to text-align: center — used a scoped deep selector to override
this so wrapped history names stay left-aligned.

Fixes galaxyproject#21143.
@dannon dannon force-pushed the fix/invocation-menu-text-alignment branch from be05608 to dcdc9eb Compare March 18, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Text alignment in invocation menu suboptimal

1 participant